package com.fuxue.mapper;

import com.fuxue.dto.ReceptDTO;
import com.fuxue.vo.ForumVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface HelpMapper {

    @Select("select is_finished from question where q_id = #{qd}")
    Integer getFinished(ReceptDTO receptDTO);

    List<ForumVO> getselect(int i);
@Update("update question set server_id = #{serverId},server_name = #{serverName} ,is_finished = 0 where q_id=#{qd}")
void update(ReceptDTO receptDTO);
}
